<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.0/dist/css/bootstrap.min.css">
    <style>
        .test {
            column-gap: 24px
        }

        .flex-item {
            flex: 1 1 0%;
            transition: all 2s;
        }

        .flex-item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .flex-item:hover {
            flex: 2.8 1 0%
        }
    </style>
</head>

<body class="vh-100">
    <div class="h-100">
        <div class="h-50 d-flex test">
            <div class="flex-item h-100">
                <div class="w-100 h-100 bg-black">
                    <img src="https://admin.sanfelice.com/app/uploads/2023/04/CAMPOGIOVANNI_hero-2040x1120-1.jpg" alt="">
                </div>
            </div>
            <div class="flex-item h-100">
                <div class="w-100 h-100 bg-info ">
                    <img src="https://admin.sanfelice.com/app/uploads/2023/04/DSC_6934-scaled.jpg" alt="">
                </div>
            </div>
            <div class="flex-item h-100">
                <div class="w-100 h-100 bg-warning ">
                    <img src="https://admin.sanfelice.com/app/uploads/2023/04/bellaja_hero-2040x1120-1.jpg" alt="" srcset="">
                </div>
            </div>
            <div class="flex-item h-100">
                <div class="w-100 h-100 bg-warning ">
                    <img src="https://admin.sanfelice.com/app/uploads/2023/04/bellaja_hero-2040x1120-1.jpg" alt="" srcset="">
                </div>
            </div>
        </div>
    </div>
</body>

</html>